<?php

/**
  * MYSQL PDO
  *
 **/

class mysql_pdo extends mysql
{   
    private $pdo = null;

	private $dbtype = 'mysql';
    
	private $host = 'localhost';
    
	private $user = 'root';
    
	private $pass = '123456';
    
	private $dbname = 'test';

	private $ds = "$dbms:host=$this->host;dbname=$this->dbname";
	

	public function __construct(){
		
		try {
			/*默认这个不是长连接，如果需要数据库长连接，需要最后加一个参数
			 *array(PDO::ATTR_PERSISTENT => true)
			 */
			$this->pdo = new PDO($ds,$user,$pass); //初始化一个PDO对象
		} catch (PDOException $e) {
			die ("Error!: " . $e->getMessage() . "<br/>");
		}
			
	}



	public static function query()
	{

	
	}

	private function beginTransaction(){}

	public static function prepared(){}

	public static function exectue(){}

}


?>